<%@ page import="com.tentact.coolmeetingtest.vo.Emp" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 40334
  Date: 2023/1/10
  Time: 23:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>人员管理 > 注册审批</title>
    <link rel="stylesheet" href="styles/common.css"/>
</head>
<body>
<div class="page-content">
  <div class="content-nav">
    人员管理 > 注册审批
  </div>
  <table class="listtable">
    <caption>所有待审批注册信息：</caption>

    <tr class="listheader">
      <th>编号</th>
      <th>姓名</th>
      <th>电子邮件</th>
      <th>部门</th>
      <th>操作</th>
    </tr>
    <%
      List<Emp> empList = (List<Emp>) request.getAttribute("emps");
      for(Emp emp : empList){
    %>
    <tr>
      <td><%=emp.getEmpno()%></td>
      <td><%=emp.getEmpName()%></td>
      <td><%=emp.getEmail()%></td>
      <td><%=emp.getDeptName()%></td>
      <td>
        <input type="button" class="clickbutton" value="通过" onclick="window.location.href = 'MainServlet?dest=emp.accept&empno=<%=emp.getEmpno()%>'">
        <input type="button" class="clickbutton" value="删除" onclick="window.location.href = 'MainServlet?dest=emp.delete&empno=<%=emp.getEmpno()%>'">
      </td>
    </tr>
    <%}%>


  </table>
</div>
</body>
</html>
